WooCommerce\Square\Handlers\Products D

Total Complexity 207
Dependencies 11
Dependents 1
Total lines 1,319
Lines of code 679
Logical lines of code 365
Comment lines 421
Methods 46
Properties 6

Methods 46

Method Rating Maintainability Complexity Lines of code
add_cart_item_data()
B
46 17 35
add_input_fields_to_gift_card_product()
A
43 14 50
process_product_data()
A
52 15 21
maybe_adjust_square_stock()
A
47 12 34
add_notice_product_hidden_from_catalog()
A
51 9 24
add_product_data_fields()
A
46 8 39
set_synced_with_square()
A
54 9 19
maybe_stage_product_for_sync()
S
58 8 15
filter_single_product_featured_image_placeholder()
S
54 7 21
add_sent_to_email_to_cart_item()
S
50 6 33
maybe_stage_products_for_sync_inventory()
S
58 7 16
validate_product_update_and_sync()
S
53 5 25
filter_products_synced_with_square()
S
56 5 17
handle_product_duplication()
S
58 5 17
filter_gift_card_product_featured_image_placeholder()
S
54 4 22
process_post_data()
S
58 4 16
filter_shop_page_add_to_cart_button()
S
59 4 15
add_filter_products_synced_with_square_option()
S
59 4 14
export_sync_status_taxonomy()
S
60 4 13
coupon_is_valid()
S
62 4 12
output_synced_with_square_edit_field()
S
53 3 25
add_gift_card_checkbox()
S
56 3 17
import_sync_status()
S
63 4 10
maybe_sync_product_inventory()
S
66 4 8
add_products_edit_screen_hooks()
S
48 2 30
maybe_stage_products_for_deletion()
S
67 4 8
maybe_sync_staged_products()
S
72 4 5
limit_gift_card_quantity_in_cart()
S
62 4 9
check_product_sync_errors()
S
63 3 11
maybe_delete_staged_products()
S
73 3 5
disable_shipping_for_gift_card_product()
S
65 3 10
disable_coupons_for_gift_card_product()
S
72 2 6
filter_needs_processing()
S
72 2 6
add_product_edit_screen_hooks()
S
63 2 10
disable_taxes_for_gift_card_product()
S
72 2 6
__construct()
S
64 1 10
filter_product_tabs()
S
75 1 4
get_gift_card_compatible_product_types()
S
73 1 6
map_sync_status_column()
S
75 1 4
register_sync_status_for_importer()
S
75 1 4
get_plugin()
S
82 1 3
format_product_error()
S
71 1 6
add_bulk_edit_inputs()
S
81 1 3
add_quick_edit_inputs()
S
82 1 3
add_product_sync_hooks()
S
66 1 8
add_sync_status_to_column()
S
75 1 4